<?php
//Enable or disable Teamspeak functionality
$config['Use Teamspeak'] = FALSE; //If FALSE, all Teamspeak functionality will be disabled.

//Teamspeak 3 connection settings
$config['TS Server']['Server'] = 'localhost';  //If not localhost, your TS server will need to whitelist your web server.
$config['TS Server']['Port'] = 9987;  //Default is 9987
$config['TS Server']['SQ Port'] = 10011;  //Default is 10011
$config['TS Server']['SQ Username'] = 'serveradmin';
$config['TS Server']['SQ Password'] = 'mytssqpassword';
$config['TS Server']['Script Nickname'] = 'EVE Registration Bot';

//phpBB connection settings
$config['Forums DB']['Server'] = 'localhost';
$config['Forums DB']['Port'] = 3306;
$config['Forums DB']['Username'] = 'root';
$config['Forums DB']['Password'] = '';
$config['Forums DB']['Database'] = 'nagssforums';
$config['Forums DB']['Table Prefix'] = 'phpbb_';

//Admin area (registration list) settings
$config['Admin Password'] = 'nexus';  //desired password for viewing the registration list (REG_URL/admin/)

/**
 * EVE Customizable API Key settings
 * 
 * These are totally up to you as an admin.
 * Although this system only needs a Character key, you may want to require an Account key in order to have some very rudimentary
 *   spy-checking ability by being able to see what characters are in their account and what corps. they're in.
 * To figure out your the requied access mask you want:
 *   1. Visit https://support.eveonline.com/api and log in.
 *   2. Click Create API Key.
 *   3. Check the boxes on the right that you personally want to require from your registered users.
 *   4. The Access Mask will update on the left as you check things.
 * For those unfamiliar, the Access Mask is a bitmask (http://en.wikipedia.org/wiki/Mask_(computing)),
 *   so when it's converted to binary, each 1 or 0 corresponds to one of the checkboxes on the Create API Key page.
 * "Minimum" means that that access mask has the minimum set of data access enabled, not that it's the minimum numerically.
 */
$config['Account Key Required'] = TRUE; //FALSE: Only a Character key will be required. TRUE: Account key required.
$config['Minimum Access Mask'] = 8;

/**
 * Corporations and their corresponding TS and forums groups
 * 
 * To easily get a corporation ID if you know the the corp. name or ticker:
 *   1. Visit http://evemaps.dotlan.net/
 *   2. Use the Search feature to find the corp. by name or ticker.
 *   3. The corporation ID is listed in the chart.
 * 
 * To get a corporation ID if you know a character's name that's in the corp.:
 *   1. Visit http://games.chruker.dk/eve_online/test_eve_api.php?function=eve_character_id .
 *   2. Search for a character by typing their name and clicking Lookup.
 *   3. You will see a row toward the bottom of the result that contains (roughly) 'characterID="555555555"'.  Copy that number.
 *   4. Visit http://games.chruker.dk/eve_online/test_eve_api.php?function=eve_character_info .
 *   5. Enter the character ID you just copied and click Lookup.
 *   6. Toward the bottom of the result, you'll see a line that looks like "<corporationID>555555555</corporationID>". That number is the corp. ID.
 * 
 * To get all corporation IDs in all alliances:
 *   1. Visit http://games.chruker.dk/eve_online/test_eve_api.php?function=eve_alliancies .
 *   2. Click Lookup.
 *   3. Every alliance in the game is listed, with a sub-list of all the corporations in each alliance.
 *   4. The corp. ID the number in the part that looks like 'corporationID="555555555"' on any corp. line.
 * 
 * To find a group ID in Teamspeak (one way):
 *   1. In Teamspeak, go to Permissions --> Server Groups.
 *   2. All groups have their group ID in parentheses next to their name in the left column.
 * 
 * To find a group ID in phpBB (one way):
 *   1. In phpBB, go to the Administration Control Panel --> Users and Groups --> Manage Groups.
 *   2. Click Settings for the group you want to check.
 *   3. At the very end of your browser's address bar, it should say something like "g=8".  That number is the group ID.
 * 
 * Format:
 *   corporation_id => array(ts_group_id, forums_group_id), //corp_ticker (for your reference only)
 *
 * Multiple corporations can be assigned to the same TS group or forums group.
 *
 * If Teamspeak is disabled above, the TS group ID will simply be ignored, so NULL or any number can be used for it.
 */
$config['Corps'] = array(
  555555555 => array(9, 8), //ACME (Assign EVE corp 555555555 to TS group 9 and forums group 8.)
  333333333 => array(13, 15), //ACORP
);

/**
 * TS group IDs script should ignore (not ever remove users from)
 *
 * If Teamspeak is disabled above, this setting is not used.
 */
$config['Ignore TS Groups'] = '6,8'; //Important: no spaces

/**
 * Forums group IDs script should ignore (not ever remove users from)
 * Be careful here.  Not keeping the right format can lead to users being removed from potentially important groups.
 * By default this includes the phpBB predefined groups for a fresh install.
 */
$config['Ignore Forums Groups'] = '1,2,3,4,5,6,7';

/**
 * Frequency at which users' API information will be checked by the check-users.php script
 * These numbers specify how long ago the Cached Until time (in database) has to be, in hours,
 *   in order for a user to be checked.
 * Remember that the database Cached Until time the script puts in the database is either the
 *   actual EVE API CachedUntil time or 1 hour from the check, whichever is greater, so in practical
 *   terms, adding 1 to these numbers will give you the actual check frequency in hours.
 * If Teamspeak is disabled above, the In TS setting is not used.  Both are used otherwise.
 */
$config['Check Frequency']['In TS'] = 0; //Default: 0 (use DB Cached Until time)
$config['Check Frequency']['Not In TS'] = 23; //Default: 23 (use DB Cached Until time + 23 hours)
?>